#10000/s  在windows 32G内存 2G处理器
import gevent
import gevent.server
if __name__ == "__main__":
    def handle(self, socket, address):
            while True:
                data = socket.recv(1024)
                if not data:
                    break
                socket.sendall(data)
    class new_class(gevent.server.StreamServer):
         def handle(self,socket,address):
              handle(self,socket,address)
    gevent_obj=new_class(('localhost',8888))
    gevent_obj.serve_forever()